package com.crazy.bookstore.service;

import com.crazy.bookstore.entity.Member;
import com.crazy.bookstore.entity.MemberReadState;
import com.crazy.bookstore.exception.MyException;

/**
 * @author: 卢辉宇
 * @date: 2022/12/29 20:52
 * @description:
 */
public interface MemberService {
    Member createMember(String username, String password, String nickname) throws MyException;

    Member checkLogin(String username, String password) throws MyException;

    Member selectById(Long memberId);

    MemberReadState selectMemberReadState(Long memberId, Long bookId);

    MemberReadState updateMemberReadState(Long memberId, Long bookId, Integer readState);
}
